package com.ruoyi.apply.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.apply.mapper.SysSimApplyMapper;
import com.ruoyi.apply.domain.SysSimApply;
import com.ruoyi.apply.service.ISysSimApplyService;

/**
 * SIM申请管理Service业务层处理
 * 
 * @author laifolai
 * @date 2023-02-06
 */
@Service
public class SysSimApplyServiceImpl implements ISysSimApplyService 
{
    @Autowired
    private SysSimApplyMapper sysSimApplyMapper;

    /**
     * 查询SIM申请管理
     * 
     * @param applyId SIM申请管理主键
     * @return SIM申请管理
     */
    @Override
    public SysSimApply selectSysSimApplyByApplyId(Long applyId)
    {
        return sysSimApplyMapper.selectSysSimApplyByApplyId(applyId);
    }

    /**
     * 查询SIM申请管理列表
     * 
     * @param sysSimApply SIM申请管理
     * @return SIM申请管理
     */
    @Override
    public List<SysSimApply> selectSysSimApplyList(SysSimApply sysSimApply)
    {
        return sysSimApplyMapper.selectSysSimApplyList(sysSimApply);
    }

    /**
     * 新增SIM申请管理
     * 
     * @param sysSimApply SIM申请管理
     * @return 结果
     */
    @Override
    public int insertSysSimApply(SysSimApply sysSimApply)
    {
        sysSimApply.setCreateTime(DateUtils.getNowDate());
        return sysSimApplyMapper.insertSysSimApply(sysSimApply);
    }

    /**
     * 修改SIM申请管理
     * 
     * @param sysSimApply SIM申请管理
     * @return 结果
     */
    @Override
    public int updateSysSimApply(SysSimApply sysSimApply)
    {
        sysSimApply.setUpdateTime(DateUtils.getNowDate());
        return sysSimApplyMapper.updateSysSimApply(sysSimApply);
    }

    /**
     * 批量删除SIM申请管理
     * 
     * @param applyIds 需要删除的SIM申请管理主键
     * @return 结果
     */
    @Override
    public int deleteSysSimApplyByApplyIds(Long[] applyIds)
    {
        return sysSimApplyMapper.deleteSysSimApplyByApplyIds(applyIds);
    }

    /**
     * 删除SIM申请管理信息
     * 
     * @param applyId SIM申请管理主键
     * @return 结果
     */
    @Override
    public int deleteSysSimApplyByApplyId(Long applyId)
    {
        return sysSimApplyMapper.deleteSysSimApplyByApplyId(applyId);
    }
}
